package com.wq.common.utils

import android.graphics.Color
import android.view.View
import android.widget.TextView
import org.jetbrains.anko.sdk25.coroutines.onClick
import org.jetbrains.anko.textColor
import org.jetbrains.anko.toast
import kotlin.properties.Delegates

/**
 * Created by WQ on 2017/6/27.
 */

class DialogExtend{

    fun testBuilder(){
        val view:View by Delegates.notNull<View>()
        ViewEx(view){
            textview(1){
                text="";
                textColor= Color.parseColor("#FF0000")
                onClick {
                    view.context.toast("点击")
                }
            }
            image(1){
            }
        }
    }

}
